From: Adel Gadllah Date: Mon, 5 Oct 2009 15:59:33 +0000 (+0200) Subject: String formatting: Fix warning X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~10782 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=edb50d5dc78b70df666ce962ae7924c3a3fd2151;p=gnome-shell.git String formatting: Fix warning Fix to not trigger a warning like: JS ERROR: !!! WARNING: 'anonymous function does not always return a value' by adding a return ""; at the end of the anonymous function. https://bugzilla.gnome.org/show_bug.cgi?id=595661 --- diff --git a/js/misc/format.js b/js/misc/format.js index e6848b565..792d306a7 100644 --- a/js/misc/format.js +++ b/js/misc/format.js @@ -39,6 +39,6 @@ function format() { default: throw new Error('Unsupported conversion character %' + genericGroup); } - + return ""; // Suppress warning }); }